using System;
using System.Collections.Generic;

namespace Hymans.Charles.JAudit.SyntaxNodes
{
	public class JavaType
	{
		public IList<JavaMethod> Methods
		{
			get;
			private set;
		}
		
		public JavaType(IList<JavaMethod> methods)
		{
			this.Methods = methods;
		}
		
		public JavaType(): this(new List<JavaMethod>())
		{
		}
		
		public void Visit(IVisitor visitor)
		{
			foreach (JavaMethod method in this.Methods)
			{
				method.Visit(visitor);
			}
		}
	}
}

